import { createRouter, createWebHashHistory } from 'vue-router';

const routes = [
  {
    path: '/',
    component: () => import('../views/Layout.vue'),
    children: [
      {
        path: '',
        redirect: 'bili'
      },
      {
        path: 'bili',
        name: 'BiliBli',
        component: () => import('../views/bilibli.vue')
      },
      {
        path: 'douyin',
        name: 'Douyin',
        component: () => import('../views/douyin.vue')
      }
    ]
  }
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router; 